package thread.assignment;

public class CorrectThread1 {

	static String message;

	public static void main(String args[]) throws InterruptedException {

		Thread t = new Thread(){
			@Override
		    public void run() {
				// Key statement 1:
				message = "This should not be printed...";
		    }
		};
		
		t.start();
		t.join();
		
		message = "I am main()...";
		Thread.sleep(1);
		// Key statement 2:
		System.out.println(message);
	}
	
	
}
